<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<style>

    .div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 1200px;
        height: 500px;
        overflow: hidden
    }

    .img {
        width: 750px;
        height: 426px;
        object-fit: cover
    }

</style>

<div class="div">
    <img class="img" src="<%=request.getContextPath()%>/static/pages/img/index.png" alt="图片不见了">
</div>